/*******************************************************************************
 * 文件名: DataConfigCell.java
 * 描    述: 数据配置字段实体类
 * 创建人: Dean Huang(hudi-112@163.com)
 * 日　期: 2017-12-22
 * 描　述: 文件描述
 * 版　本: 1.0
 *******************************************************************************/

package com.z1.core.data;

public class DataConfigCell implements java.io.Serializable {

	private static final long serialVersionUID = -4177957489832896571L;
	
	//导入数据字段名
	private String column = null;
	//实体属性名
	private String property = null;
	//说明/标头
	private String comment = null;
	//是否必须
	private Boolean required = false;
	//数据字段类型
	private String javaType = null;
	//数据字段类型Class
	private Class<?> javaTypeClass = null;
	//长度
	private Integer length = 0;
	//位数(用于小数Double、Float)
	private Integer precision = 0;
	//是否导入
	private Boolean imports = true;
	//是否导出
	private Boolean export = true;
	
	public String getColumn() {
		return column;
	}
	public void setColumn(String column) {
		this.column = column;
	}
	public DataConfigCell column(String column) {
		this.setColumn(column);
		return this;
	}
	
	public String getProperty() {
		return property;
	}
	public void setProperty(String property) {
		this.property = property;
	}
	public DataConfigCell property(String property) {
		this.setProperty(property);
		return this;
	}
	
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public DataConfigCell comment(String comment) {
		this.setComment(comment);
		return this;
	}
	
	public Boolean getRequired() {
		return required;
	}
	public void setRequired(Boolean required) {
		this.required = required;
	}
	public DataConfigCell required(Boolean required) {
		this.setRequired(required);
		return this;
	}
	
	public String getJavaType() {
		return javaType;
	}
	public void setJavaType(String javaType) {
		this.javaType = javaType;
	}
	public DataConfigCell javaType(String javaType) {
		this.setJavaType(javaType);
		return this;
	}
	
	public Class<?> getJavaTypeClass() {
		return javaTypeClass;
	}
	public void setJavaTypeClass(Class<?> javaTypeClass) {
		this.javaTypeClass = javaTypeClass;
	}
	public DataConfigCell javaTypeClass(Class<?> javaTypeClass) {
		this.setJavaTypeClass(javaTypeClass);
		return this;
	}
	
	public Integer getLength() {
		return length;
	}
	public void setLength(Integer length) {
		this.length = length;
	}
	public DataConfigCell length(Integer length) {
		this.setLength(length);
		return this;
	}
	
	public Integer getPrecision() {
		return precision;
	}
	public void setPrecision(Integer precision) {
		this.precision = precision;
	}
	public DataConfigCell precision(Integer precision) {
		this.setPrecision(precision);
		return this;
	}
	
	public Boolean isImports() {
		return imports;
	}
	public void setImports(Boolean imports) {
		this.imports = imports;
	}
	public DataConfigCell imports(Boolean imports) {
		this.setImports(imports);
		return this;
	}
	
	public Boolean isExport() {
		return export;
	}
	public void setExport(Boolean export) {
		this.export = export;
	}
	public DataConfigCell export(Boolean export) {
		this.setExport(export);
		return this;
	}
	
}
